package com.ycy.dubbo.controller;

import com.ycy.dubbo.entity.QueryTaskInstsDto;
import com.ycy.dubbo.entity.YcyResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@FeignClient(name = "ycy-provider")
public interface FeignClientInterface {

  @RequestMapping(value = "/time", method = RequestMethod.POST)
  YcyResponse getTime(@RequestBody Map<String, Object> map);


  @RequestMapping(value = "/search", method = RequestMethod.POST)
  YcyResponse getTime(@RequestBody QueryTaskInstsDto queryTaskInstsDto);

}
